import request from '@/utils/request'

// 查询强基系统配置列表
export function listRedbase(query) {
    return request({
        url: '/spspublic/redbase/list',
        method: 'get',
        params: query
    })
}

// 查询强基系统配置详细
export function getRedbase(ctId) {
    return request({
        url: '/spspublic/redbase/' + ctId,
        method: 'get'
    })
}

// 新增强基系统配置
export function addRedbase(data) {
    return request({
        url: '/spspublic/redbase',
        method: 'post',
        data: data
    })
}

// 修改强基系统配置
export function updateRedbase(data) {
    return request({
        url: '/spspublic/redbase/edit',
        method: 'post',
        data: data
    })
}

// 删除强基系统配置
export function delRedbase(ctId) {
    return request({
        url: '/spspublic/redbase/delete/' + ctId,
        method: 'post'
    })
}

// 导出强基系统配置
export function exportRedbase(query) {
    return request({
        url: '/spspublic/redbase/export',
        method: 'get',
        params: query
    })
}

// 获取强基系统的登录状态
export function getLoginCookies() {
  return request({
    url: '/spspublic/redbase/getLoginCookies',
    method: 'post'
  })
}
